import java.util.Scanner;

public class Banktest {
    public static void main(String[] args) throws myException {
        Bank bank = new Bank();
        bank.setId("1234567890");
        bank.setName("张三");
        bank.setBalance(100);
        int num1=0;
        int num2=0;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要存的金额：");
        num1=scanner.nextInt();
        System.out.println("请输入要取的金额：");
        num2=scanner.nextInt();

        bank.deposit(num1);

        bank.withdraw(num2);
        bank.viewBalance();

    }
}
